﻿@model DocumentTrackingSystem.Models.Office
@*<script src="@Url.Content("~/Scripts/jquery.ui.widget.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.core.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>*@
<fieldset>
    <legend></legend>
    <div class="clearfix">
        @Html.LabelFor(m => m.ShortName)
        <div class="input">
            @Html.TextBoxFor(m => m.ShortName)
            @Html.ValidationMessageFor(m => m.ShortName)
        </div>
    </div>
    <div class="clearfix">
        @Html.LabelFor(m => m.Name)
        <div class="input">
            @Html.TextBoxFor(m => m.Name, new { style="width:95%;"})
            @Html.ValidationMessageFor(m => m.Name)
        </div>
    </div>

        <div class="actions">
            <input type="submit" class="btn primary" @{
                if (Model.ID!=0)
                {
                    <text>value="Update"</text>
                }
                else
                {
                    
                    <text>value="Save"</text>
                }
                }" />
            <input type="button" class="btn closeModal" value="Close window" />
        </div>
</fieldset>

